# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header

inherit cvs

DESCRIPTION="RFC3261 compliant SIP User-Agent library"
HOMEPAGE="http://sofia-sip.sourceforge.net/"
ECVS_SERVER="sofia-sip.cvs.sourceforge.net:/cvsroot/sofia-sip"
ECVS_MODULE="sofia-sip"
S=${WORKDIR}/${ECVS_MODULE}

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"

RDEPEND="dev-libs/glib
	ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}"

src_compile() {
	./autogen.sh || die
	#aclocal
	#autoheader
	#libtoolize --force
	#automake --add-missing
	#autoconf
	econf $(use_with ssl openssl) || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	dodoc ChangeLog COPYRIGHTS README TODO
}
